package com.property.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class QuestionnareDTO {

    @Schema(description = "问卷标题")
    private String title;

    @Schema(description = "问卷开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @Schema(description = "问卷结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @TableLogic
    @Schema(description = "删除标识")
    private String deleteFlag;

    @Schema(description = "问卷创建时间")
    private LocalDateTime createTime;

    @Schema(description = "问卷创建人")
    private String createUser;

    @Schema(description = "问卷更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "问卷更新人")
    private String updateUser;

}
